import Qt 4.7

Rectangle {
    id: loginContainer

    width: 324; height: 172
    color: "transparent"

    property alias username : loginLineEdit.text
    property alias password: passwordLineEdit.text

    signal createAccountClicked
    signal okClicked

    Text {
        id: loginLabel

        y: 16
        text: "Login"; color: "#00adef"
        font { pointSize: 7; family: "Series 60 Sans" }
    }

    Text {
        id: passwordLabel

        y: 75
        text: "Senha"; color: "#00adef"
        font { pointSize: 7; family: "Series 60 Sans" }
    }

    LineEdit {
        id: loginLineEdit

        x: 71; y: 1; width: 252; height: 52
        color: "#d1d3d4"
        fontPointSize: 9
        // Default username
        text: "adriano"
    }

    LineEdit {
        id: passwordLineEdit

        x: 71; y: 60; width: 252; height: 52
        color: "#d1d3d4"
        fontPointSize: 9;
        // Default password
        text: "adm123"
        echoMode: TextInput.Password
    }

    Button {
        id: newAccountButton

        x: 120; y: 120
        text: "Criar Conta"; textColor: "#00adef"
        color: "transparent"; defaultColor: "transparent"; pressedColor: "transparent"

        onClicked: loginContainer.createAccountClicked()
    }
    Button {
        id: okButton

        x: 242; y: 120
        text: "OK"
        onClicked: loginContainer.okClicked()
    }
}
